from rest_framework import serializers
from orders.models import Orders, OrdersProduct, LogisticsCompany

class OrdersSerializer(serializers.ModelSerializer):
    """
    订单管理
    """
    class Meta:
        model = Orders
        fields = '__all__'


class OrdersProductSerializer(serializers.ModelSerializer):
    """
    订单商品
    """
    class Meta:
        model = OrdersProduct
        fields = '__all__'


class LogisticsCompanySerializer(serializers.ModelSerializer):
    """
    订单商品
    """
    class Meta:
        model = LogisticsCompany
        fields = '__all__'

